package com.cxl.entity;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;

import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * @author: 20971
 * @time: 2022/3/4 23:04
 * @description:
 */

@Data
@Document(indexName = "users_doc")
public class UserDoc implements Serializable {

    @Id
    private String id;
    @Field(name = "username")
    private String username;
    private Date created;
    //逗号分隔优惠卷
    private String coupons;
}
